#ifndef _USERMGR_H_
#define _USERMGR_H_

#include "../Common/AllTool.h"

class UserMgr : public ConfigMgr 
{
public:
	int CheckInfo(tstring tsUsername,tstring tsPassword)
	{
		tstring tsValue;
		if( GetStringValue(tsUsername,tsValue) != OK )
		{
			return 1;
		}
		if( tsValue != tsPassword )
		{
			return 1;
		}
		return 0;
	}
	int GetUserInfo(tstring &tsRet)
	{
		tsRet = _TEXT("");
		std::map<tstring,tstring>::iterator it;
		for(it=hash.begin();it!=hash.end();it++)
		{
			tsRet += it->first + _TEXT("\r\n");
		}
		return 0;
	}
};

#endif